package com.woniuxy.carrental.controller;

import com.woniuxy.carrental.entity.RentCarType;
import com.woniuxy.carrental.service.RentCarTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author author
 * @create 2021-10-04 14:51
 */

@RestController
public class RentCarTypeController {

    @Autowired
    RentCarTypeService rentCarTypeService;


    @GetMapping("/getRentCarType")
    public List<RentCarType> getRentCarType() {
        List<RentCarType> rentCarTypes = rentCarTypeService.selectAllRentCarType();

        return rentCarTypes;
    }


}
